//
//  MLComposeView.swift
//  MLWeiBo
//
//  Created by wenxing on 2017/1/12.
//  Copyright © 2017年 Se7venX. All rights reserved.
//

import UIKit

class MLComposeView: UIView {

    
    lazy var imageView: UIImageView = {
        let iv = UIImageView(frame: self.bounds)
        
        
        return iv
    }()
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        
        let image = UIImage.snapImage()?.applyLightEffect()
        imageView.image = image
        addSubview(imageView)
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        
        self.removeFromSuperview()
        
    }
    
   
}
